﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="QL_Dien_Thoai.aspx.cs" Inherits="QL_Dien_Thoai" Title="Quản lý điện thoại" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style2
        {
            width: 100%;
            border-style: solid;
            border-width: 1px;
        }
        .style3
        {
            width: 25%;
        }
        .style4
        {
        }
        .style6
        {
            width: 19%;
        }
        </style>
</asp:Content>

<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

                    <table cellpadding="2" cellspacing="1" class="style2" 
    style="100%: ;">
                        <tr>
                            <td align="center" colspan="3" 
                                style="height: 28px; background-color: #4F95FF; color: #FFFFFF; font-size: 16px; width: 800px;">
                                QUẢN LÝ THÔNG TIN - SẢN PHẨM</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Tên DT</td>
                            <td style="width: 25%">
                                <asp:TextBox ID="txttendt" runat="server" Width="160px"></asp:TextBox>
                                <asp:Label ID="lbl" runat="server" ForeColor="#FF0066"></asp:Label>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Số lượng</td>
                            <td style="width: 25%">
                                <asp:TextBox ID="txtsoluong" runat="server" Width="160px"></asp:TextBox>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Giá</td>
                            <td style="width: 25%">
                                <asp:TextBox ID="txtgia" runat="server" Width="160px"></asp:TextBox>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Giá Khuyến mãi</td>
                            <td style="width: 25%">
                                <asp:TextBox ID="txtgiakm" runat="server" Width="160px"></asp:TextBox>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Thẻ nhớ</td>
                            <td style="width: 25%">
                                <asp:TextBox ID="txtthenho" runat="server" Width="160px">4 G</asp:TextBox>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Game</td>
                            <td style="width: 25%">
                                <asp:TextBox ID="txtgame" runat="server" Width="160px">FIFA</asp:TextBox>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Nhạc chuông</td>
                            <td style="width: 25%">
                                <asp:TextBox ID="txtnhacchuong" runat="server" Width="160px">MP3</asp:TextBox>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Bộ nhớ trong</td>
                            <td style="width: 25%">
                                <asp:TextBox ID="txtbonhotrong" runat="server" Width="160px">25 Mb</asp:TextBox>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Ngày Cập nhật</td>
                            <td style="width: 25%">
                                <asp:TextBox ID="txtngaycapnhat" runat="server" Width="160px"></asp:TextBox>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Năm sản xuất</td>
                            <td style="width: 25%">
                                <asp:TextBox ID="txtnamsx" runat="server" Width="160px"></asp:TextBox>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Hình</td>
                            <td style="width: 25%">
                                <asp:FileUpload ID="FileUpload1" runat="server" />
                                <asp:Button ID="btnUpHinh" runat="server" onclick="btnUpHinh_Click" 
                                    Text="Up Hình" />
                                <br />
                                <br />
                                <asp:TextBox ID="txtHinh" runat="server" Width="160px"></asp:TextBox>
                                <asp:Label ID="lblhinh2" runat="server" Visible="False"></asp:Label>
                            </td>
                            <td style="width: 25%">
                                <asp:Label ID="lblErr" runat="server" ForeColor="#CC0000"></asp:Label>
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Mã hãng</td>
                            <td style="width: 25%">
                                <asp:DropDownList ID="DropDownListmaHang" runat="server" 
                                    DataSourceID="SqlDataSource1" DataTextField="TenHang" DataValueField="TenHang" 
                                    Width="166px">
                                </asp:DropDownList>
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:DIEN_THOAIConnectionString %>" 
                                    SelectCommand="SELECT * FROM [Hang_SX]"></asp:SqlDataSource>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Hổ trợ Wifi</td>
                            <td style="width: 25%">
                                <asp:DropDownList ID="DropDownListwifi" runat="server" Width="166px">
                                    <asp:ListItem>Wi-Fi 802.11 b/g/n, Wi-Fi Direct, DLNA, Wi-Fi hotspot</asp:ListItem>
                                    <asp:ListItem></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Bảo hành</td>
                            <td style="width: 25%">
                                <asp:DropDownList ID="DropDownListbaohang" runat="server" Width="166px">
                                    <asp:ListItem>6 tháng</asp:ListItem>
                                    <asp:ListItem>12 tháng</asp:ListItem>
                                    <asp:ListItem>24 tháng</asp:ListItem>
                                    <asp:ListItem>Vô đối</asp:ListItem>
                                    <asp:ListItem></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Băng tần</td>
                            <td style="width: 25%">
                                <asp:DropDownList ID="DropDownListBangtan" runat="server" Width="166px">
                                    <asp:ListItem>GSM 850/900</asp:ListItem>
                                    <asp:ListItem>GSM 850/900/1800</asp:ListItem>
                                    <asp:ListItem>GSM 850/900/1800/1900</asp:ListItem>
                                    <asp:ListItem></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Hổ trợ xem phim</td>
                            <td style="width: 25%">
                                <asp:DropDownList ID="DropDownListXemPhim" runat="server" Width="166px">
                                    <asp:ListItem>H.263, H.264(MPEG4-AVC)</asp:ListItem>
                                    <asp:ListItem>H.263, H.264(MPEG4-AVC), MP4</asp:ListItem>
                                    <asp:ListItem>H.263, H.264(MPEG4-AVC), MP4, WMV</asp:ListItem>
                                    <asp:ListItem></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Mạng Sử dụng</td>
                            <td style="width: 25%">
                                <asp:DropDownList ID="DropDownListmangUse" runat="server" Width="166px">
                                    <asp:ListItem>vinaphone</asp:ListItem>
                                    <asp:ListItem>Viettell</asp:ListItem>
                                    <asp:ListItem>Mobiphone</asp:ListItem>
                                    <asp:ListItem>Vietnammobile</asp:ListItem>
                                    <asp:ListItem>G mophone</asp:ListItem>
                                    <asp:ListItem></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Kiểu dáng</td>
                            <td style="width: 25%">
                                <asp:DropDownList ID="DropDownListKieuDang" runat="server" Width="166px">
                                    <asp:ListItem>Thanh</asp:ListItem>
                                    <asp:ListItem>Trượt</asp:ListItem>
                                    <asp:ListItem>Gập</asp:ListItem>
                                    <asp:ListItem>Cảm ứng</asp:ListItem>
                                    <asp:ListItem></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="width: 25%">
&nbsp;&nbsp;
                                </td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Camera</td>
                            <td style="width: 25%">
                                <asp:DropDownList ID="DropDownListCamera" runat="server" Width="166px">
                                    <asp:ListItem>Vga</asp:ListItem>
                                    <asp:ListItem>1.3px</asp:ListItem>
                                    <asp:ListItem>2.0px</asp:ListItem>
                                    <asp:ListItem>3.2px</asp:ListItem>
                                    <asp:ListItem>5px</asp:ListItem>
                                    <asp:ListItem>8px</asp:ListItem>
                                    <asp:ListItem>12px</asp:ListItem>
                                    <asp:ListItem>100px</asp:ListItem>
                                    <asp:ListItem></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Hổ trợ 3G</td>
                            <td style="width: 25%">
                                <asp:RadioButton ID="RroCo3g" runat="server" GroupName="g3" Text="Có" 
                                    Checked="True" />
                                <asp:RadioButton ID="RroKCo3g" runat="server" GroupName="g3" Text="Không có" />
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Hổ trợ GPRS</td>
                            <td class="style3">
                                <asp:RadioButton ID="RroCoRp" runat="server" GroupName="gr" Text="Có" 
                                    Checked="True" />
                                <asp:RadioButton ID="RroKCoRp" runat="server" GroupName="gr" Text="Không có" />
                            </td>
                            <td class="style3">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Chơi nhạc MP3</td>
                            <td style="width: 25%">
                                <asp:RadioButton ID="RroCoMp3" runat="server" GroupName="mp3" Text="Có" 
                                    Checked="True" />
                                <asp:RadioButton ID="RroKCoMp4" runat="server" GroupName="mp3" 
                                    Text="Không có" />
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Bluetooth</td>
                            <td style="width: 25%">
                                <asp:RadioButton ID="RroCoBl" runat="server" GroupName="blu" Text="Có" 
                                    Checked="True" />
                                <asp:RadioButton ID="RroKCoBlu" runat="server" GroupName="blu" 
                                    Text="Không có" />
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Hổ trợ xem TiVi</td>
                            <td style="width: 25%">
                                <asp:RadioButton ID="RroCoTivi" runat="server" GroupName="tivi" Text="Có" 
                                    Checked="True" />
                                <asp:RadioButton ID="RroKCoTivi" runat="server" GroupName="tivi" 
                                    Text="Không có" />
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Loa ngoài</td>
                            <td style="width: 25%">
                                <asp:RadioButton ID="RroCoLoa" runat="server" GroupName="loa" Text="Có" 
                                    Checked="True" />
                                <asp:RadioButton ID="RroKCoLoa" runat="server" GroupName="loa" 
                                    Text="Không có" />
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Hổ trợ FM Radio</td>
                            <td style="width: 25%">
                                <asp:RadioButton ID="RroCoFm" runat="server" GroupName="fm" Text="Có" 
                                    Checked="True" />
                                <asp:RadioButton ID="RroKCoFm" runat="server" GroupName="fm" Text="Không có" />
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                Các tính năng khác</td>
                            <td style="width: 25%">
                                <asp:TextBox ID="txtcactinhnangkh" runat="server" Height="21px" Width="160px"></asp:TextBox>
                            </td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                &nbsp;</td>
                            <td style="width: 25%">
                                &nbsp;</td>
                            <td style="width: 25%">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" class="style4" colspan="3">
                                <asp:Button ID="btnthem" runat="server" onclick="btnthem_Click" Text="Thêm" />
                                &nbsp;
                                <asp:Button ID="btnxoa" runat="server" onclick="btnxoa_Click" Text="Xóa" 
                                    Width="41px" />
                            &nbsp;
                                <asp:DropDownList ID="DropDownList1" runat="server" 
                                    DataSourceID="SqlDataSource2" DataTextField="TenSp" DataValueField="TenSp" 
                                    Width="174px">
                                </asp:DropDownList>
                                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:DIEN_THOAIConnectionString %>" 
                                    SelectCommand="SELECT [TenSp] FROM [SAN_PHAM]"></asp:SqlDataSource>
&nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" class="style4" colspan="3">
                                <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="style6">
                                </td>
                            <td class="style3">
                                </td>
                            <td class="style3">
                                </td>
                        </tr>
    </table>

</asp:Content>


